package ntd.util.modular.function.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import ntd.util.config.common.enums.EnumPlatformType;
import ntd.util.config.common.entity.BaseEntityMybatis;


import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@TableName("function_channel_business")
@Data
public class ChannelBusiness extends BaseEntityMybatis<ChannelBusiness> {

    @NotBlank
    @Schema(description = "渠道商名称", title = "渠道商名称")
    private String name;
    @Schema(description = "所属机构", title = "所属机构")
    private String tenantId;
    @Schema(description = "所属平台", title = "所属平台")
    private String platformId;
    @Schema(description = "app_key", title = "app_key")
    private String appKey;
    @Schema(description = "app_secret", title = "app_secret")
    private String appSecret;
    @Schema(description = "自定义json配置", title = "自定义json配置")
    private String settingJson;
    @NotNull
    @Schema(description = "渠道商类型", title = "渠道商类型")
    private EnumPlatformType enumPlatformType;
    @Schema(description = "端点地址", title = "端点地址")
    private String endpoint;
    @Schema(description = "备注信息", title = "备注信息")
    private String remark;

}
